package com.gsmr.dao;

import java.util.List;
import java.util.Map;

import com.gsmr.entity.Train_info;
import com.gsmr.entity.User;

/**
 * Train_infoDao
 * @author train_info
 *
 */
public interface Train_infoDao {
	
	/**
	 * 通过多个TrainId查询Train_info实体
	 * @param TrainId
	 * @return
	 */
	public List<Train_info> findByTrainIds(Map<String,Object> map);
	
	/**
	 * 根据条件查询Train_info集合
	 * @param map
	 * @return
	 */
	public List<Train_info> find(Map<String,Object> map);
	
	/**
	 * 获取总记录数
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String,Object> map);
	
	/**
	 * 修改Train_info
	 * @param map
	 * @return
	 */
	public int update(Map<String,Object> map);
	
	/**
	 * 添加Train_info
	 * @param map
	 * @return
	 */
	public int add(Map<String,Object> map);
	
	/**
	 * 删除Train_info
	 * @param map
	 * @return
	 */
	public int delete(Map<String,Object> map);
	
	/**
	 * 通过TrainId查询Train_info实体
	 * @param TrainId
	 * @return
	 */
	public Train_info findByTrainId(Map<String,Object> map);
	
}
